package main

import "fmt"

const (
	mutexLocked      = 1 << iota //   00000001
	mutexWoken                   //   00000010
	mutexStarving                //   00000100
	mutexWaiterShift = iota      //   00000011
)

func main() {
	//fmt.Println(mutexLocked | mutexStarving)
	//fmt.Println(1 & (mutexLocked | mutexWoken))
	//fmt.Println(1 >> 3)
	//fmt.Println(">>>,<<<<")
	x := 10 // 1010
	fmt.Println(^x)
	//fmt.Printf("%b \n", ^x) 11  0101
	fmt.Printf("%b \n", -11)

	//a := 7 // 0111
	//b := 3 // 0011
	////   0100
	//fmt.Println(^b)
	//xxx := a &^ b
	//fmt.Println(xxx)
	//fmt.Println(a & (^b))

}
